<?php

class Twitter extends CI_Controller {

    function create_member() {
        $this->load->model('manage_login');
        $data = array(
                "user_id" => $this->input->post('user_id'),
                "first_name" => $this->input->post('firstname'),
                "last_name" => $this->input->post('lastname'),
                "username" => $this->input->post('username'),
                "profile_pic_thumb" => $this->input->post('profile_pic_thumb'),
                "profile_pic" => str_replace("_normal", "", $this->input->post('profile_pic_thumb')),
                "email_adress" => $this->input->post('TwitterEmail'),
         );
         
        $user = $this->manage_login->setupTwitterUsers($data);
        $this->load->view('close_popup');
        
    }

}